package com.mright.step01.annotation;

import com.alibaba.dubbo.config.annotation.Reference;
import com.mright.step01.api.EchoApi;
import org.springframework.stereotype.Service;

/**
 * @author zhaochuanzhen
 * @since 2022/2/10 11:40 下午
 */
@Service
public class EchoConsumer {

    @Reference
    private EchoApi echoApi;

    public void echo(String name) {
        final String echo = echoApi.echo(name);
        System.out.println(echo);
    }
}
